package com.eascs.crm.nsEditDetail.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.eascs.admin.common.controller.BaseMasterViewController;
import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.crm.nsEditDetail.entity.ContactsInfoEntity;
import com.eascs.crm.nsEditDetail.service.ContactsInfoService;
import com.eascs.site.view.ViewContext;

@Controller
@RequestMapping("/contactsInfoView")
public class ContactsInfoViewController extends BaseMasterViewController {
	private final Logger logger = LoggerFactory.getLogger(NsEditDetailViewController.class);

	@Autowired
	private ContactsInfoService contactsInfoService;

	@RequestMapping(value = "/view", method = RequestMethod.GET)
	public String view(String loanapplyNo) {
		ContactsInfoEntity contactsInfo = contactsInfoService.getByLoanNo(loanapplyNo);
		ViewContext.put("contactsInfo", contactsInfo);
		return "nsEditDetail/detail";
	}
}
